package com.ldg.seckill;

import com.ld.utils.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * @Author: Liudao
 * @Date: 2022-10-21-17:18
 * @Description:
 */
@SpringBootApplication
@EnableFeignClients
public class LdgSeckillApplication {
    public static void main(String[] args) {
        SpringApplication.run(LdgSeckillApplication.class);
    }

    @Bean
    public IdWorker idWorker(){
        return new IdWorker(0,1);
    }
}
